package com.ruoyi.zyt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zyt.mapper.SchoolMapper;
import com.ruoyi.zyt.domain.School;
import com.ruoyi.zyt.service.ISchoolService;

/**
 * 院校数据Service业务层处理
 * 
 * @author zyt
 * @date 2023-11-04
 */
@Service
public class SchoolServiceImpl implements ISchoolService 
{
    @Autowired
    private SchoolMapper schoolMapper;

    /**
     * 查询院校数据
     * 
     * @param schoolId 院校数据主键
     * @return 院校数据
     */
    @Override
    public School selectSchoolBySchoolId(Long schoolId)
    {
        return schoolMapper.selectSchoolBySchoolId(schoolId);
    }

    /**
     * 查询院校数据列表
     * 
     * @param school 院校数据
     * @return 院校数据
     */
    @Override
    public List<School> selectSchoolList(School school)
    {
        return schoolMapper.selectSchoolList(school);
    }

    /**
     * 新增院校数据
     * 
     * @param school 院校数据
     * @return 结果
     */
    @Override
    public int insertSchool(School school)
    {
        return schoolMapper.insertSchool(school);
    }

    /**
     * 修改院校数据
     * 
     * @param school 院校数据
     * @return 结果
     */
    @Override
    public int updateSchool(School school)
    {
        return schoolMapper.updateSchool(school);
    }

    /**
     * 批量删除院校数据
     * 
     * @param schoolIds 需要删除的院校数据主键
     * @return 结果
     */
    @Override
    public int deleteSchoolBySchoolIds(Long[] schoolIds)
    {
        return schoolMapper.deleteSchoolBySchoolIds(schoolIds);
    }

    /**
     * 删除院校数据信息
     * 
     * @param schoolId 院校数据主键
     * @return 结果
     */
    @Override
    public int deleteSchoolBySchoolId(Long schoolId)
    {
        return schoolMapper.deleteSchoolBySchoolId(schoolId);
    }
}
